﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CMView
{
	public partial class MainControl : UserControl
	{
		#region Constructor(s) ------------------------------------------------------------------------

		public MainControl()
		{
			InitializeComponent();
		}

		#endregion Constructor(s) ---------------------------------------------------------------------


		#region Functions -----------------------------------------------------------------------------

		private void buttonAccount_Click(object sender, RoutedEventArgs e) { if (ManageAccounts != null) ManageAccounts(this, new EventArgs()); }
		private void buttonSupplier_Click(object sender, RoutedEventArgs e) { if (ManageSuppliers != null) ManageSuppliers(this, new EventArgs()); }

		private void buttonWarehouseEntry_Click(object sender, RoutedEventArgs e) { if (ManageWarehouseEntries != null) ManageWarehouseEntries(this, new EventArgs()); }
		private void buttonProduct_Click(object sender, RoutedEventArgs e) { if (ManageProducts != null) ManageProducts(this, new EventArgs()); }
		private void buttonAudit_Click(object sender, RoutedEventArgs e) { if (ManageAudits != null) ManageAudits(this, new EventArgs()); }
		private void buttonMenu_Click(object sender, RoutedEventArgs e) { if (ManageMenu != null) ManageMenu(this, new EventArgs()); }

		private void buttonZoomIn_Click(object sender, RoutedEventArgs e)
		{
			// Todo: Zoom in
		}
		private void buttonZoomOut_Click(object sender, RoutedEventArgs e)
		{
			// Todo: Zoom out
		}

		#endregion Functions --------------------------------------------------------------------------


		#region Events --------------------------------------------------------------------------------

		public event EventHandler ManageAccounts = null;
		public event EventHandler ManageSuppliers = null;
		public event EventHandler ManageWarehouseEntries = null;
		public event EventHandler ManageProducts = null;
		public event EventHandler ManageAudits = null;
		public event EventHandler ManageMenu = null;

		#endregion Events -----------------------------------------------------------------------------
	}
}